<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title>体检预约服务平台 - 医通在线</title>
    <link href="templates/css/global.css" rel="stylesheet" type="text/css" />
    <link href="templates/css/agency.css" rel="stylesheet" type="text/css" />
    <script src="templates/js/form.js" type="text/javascript"></script>
    <script src="templates/js/common.js" type="text/javascript"></script>   
    <script src="templates/js/findpwd.js" type="text/javascript"></script>  
    <meta content="" name="Keywords">
    <meta name="description" content="" />
    <!--[if IE 6]>
    <script src="../../js/ddpng.js" type="text/javascript"></script>
    <script type="text/javascript">DD_belatedPNG.fix('.ddpng');</script>
    <![endif]--> 
</head>
<body>

<!--header st-->
<{include file="../templates/$newtpl/header.html"}>
<div class="row mb10 center_layout fix">
    <div class="main_con">
        <div class="con info_box findpasd">
            <h4>找回密码</h4>
            <div class="step"><img src="templates/images/step_find_1.png" /></div>
            <div class="con reglog_box">
                <dl class="form">
                    <dd style='display:none;'>
                        <label >工号：</label>
                        <input type="text" id="user_gh" name="user_gh"/>
                        <p class="fault" id="user_gh_s" style="display:none">工号不存在</p>
                    </dd>
                    
                    <dd><label style="width: 64px;">证件号：</label>
                        <select name="user_indefiny" id="user_indefiny">
                            <option value="1">身份证</option>
                            <option value="2">护照</option>
                            <option value="3">军官证</option>
                            <option value="4">其他</option>
                        </select> 
                    <input type="text" id="user_indefiny_code" name="user_indefiny_code"/>
                    <p class="fault" id="user_indefiny_code_s" style="display:none">证件号不对</p></dd>
                </dl>
                <div class="btn">
                    <a href="javascript:void(0);" title="立即验证" class="btn_yz" onclick="check_login_new();"></a>
                </div>
            </div>
        </div>
    </div>
</div>

<{include file="../templates/$newtpl/foot.html"}>

<!--脚本如下-->
<script src="templates/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="templates/js/jquery.switchable2.min.js" type="text/javascript"></script>
<script src="templates/js/global.js" type="text/javascript"></script>
<script type="text/javascript">
    jQuery(document).ready(function($) {

        $(".btn_yz").click(function(event) {

            var user_gh = $('#user_gh').val();
            var user_indefiny_code = $("#user_indefiny_code").val();
            var user_indefiny = $("#user_indefiny").val();
    
            if(user_indefiny_code==''){
                alert('证件号不能为空');
                return false;
            }

            user_gh = user_indefiny_code;
        
 
            var S = {};

            S.data = {
                user_gh : user_gh,
                user_indefiny_code : user_indefiny_code,
                user_indefiny : user_indefiny
            };

            $.ajax({
                url : "/index.php?action=findpwd",
                type : "POST",
                data : S.data,
                cache : false,
                dataType : "json",
                success : function(json) {
                    if (json.c == '1') {
                        alert("未查询到属于该证件号的员工信息");
                        return false;
                    } else if (json.c == '2') {
                        alert("未查询到属于该证件号的员工信息");
                        return false;
                    }else{
                        window.location.href="/findpwd_next";
                    }
                },
                error : function() {
                    alert('出错了');
                }
            });
        });
        
    });


</script>
</body>
</html>